package com.cmc6.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cmc6.user.model.dto.LoginByOtherUserDTO;
import com.cmc6.user.model.entity.UserLoginDO;
import org.apache.ibatis.annotations.Param;

public interface UserLoginMapper extends BaseMapper<UserLoginDO> {

    // 通过 email获取 UserLoginDO
    UserLoginDO loginByEmailOrPhone(@Param("email") String email, @Param("phone") String phone);

    // 通过 微信openid，获取用户的一些信息
    LoginByOtherUserDTO loginByWxCodeGetUserByOpenId(@Param("openid") String openid);

    // 通过手机号，获取用户的一些信息
    LoginByOtherUserDTO loginByWxCodeGetUserByPhone(@Param("phone") String phone);

}




